define(function(require, exports, module) {
	"require:nomunge,exports:nomunge,module:nomunge";

	var view = require('mokit/view');
	var grid = require('mokit/grid');
	var utils = require('mokit/utils');
	var commonUtils = require('../common/utils');
	var app = require('mokit/app');
	var move = require('mokit/move');
	var $ = require('mokit/jquery');
	var scroll = require("../controls/scroll");

	/**
	 * 关于页视图
	 */
	return view.create({
		template: module.resovleUri('../templates/provider.html'),
		el: {
			provider: '#fac_services',
			works: '#fac_works',
			menu: '.ui-footer-tab-menu',
			scrollbox: ".ui-content"
		},

		utils: commonUtils,
		config: app.config,

		/**
		 * 在视图呈现时
		 */
		onRender: function(context) {
			var self = this;
			grid.use(self.ui);
			scroll({
				obj: this.el.scrollbox,
				view: [this,this.model.type],
				callback: this.model.loadMoreList.bind(this.model)
			});
		}
	});
});